package _me._ground {
	import _Pan3D.core.MathCore;
	import _me.Scene_data;

	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;

	// --------------MSN:lation_pan@live.cn  QQ: 3423526------------- //
	public class MakeGroundInfo extends MovieClip {
		private var bitmapGround : Bitmap;
		private var mcPoint : Sprite;
  
		public function MakeGroundInfo() : void {
			addPics();
			addPoints();
			addEvents();
		}

		private function addPoints() : void {
			mcPoint = new Sprite();
			mcPoint.graphics.beginFill(0x00FF00, 1);
			mcPoint.graphics.drawCircle(0, 0, 10);
			mcPoint.graphics.endFill();
			addChild(mcPoint);
		}

		private function addEvents() : void {
			this.addEventListener(Event.ENTER_FRAME, enterFrame);
		}

		private function enterFrame(event : Event) : void {

		
			var xx : int = (1024 / 2) + Scene_data.focus3D.x-Scene_data.laseScanningPesition.x ;
			var yy : int = (1024 / 2) + Scene_data.focus3D.z-Scene_data.laseScanningPesition.z ;
			mcPoint.x = xx;
			mcPoint.y = yy;
	
		}


		private function addPics() : void {
			bitmapGround = new Bitmap();
			bitmapGround.bitmapData = Scene_data.groundBitmapData;
			//addChild(bitmapGround);
		}

		public function setBitmapData(bmp : BitmapData) : void {
			bitmapGround.bitmapData = bmp;
		}
	}
}
